﻿using moai_kun_v2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Unity.VisualScripting;
using UnityEngine;


public class Bomb:MonoBehaviour
{
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.TryGetComponent<MainActor>(out MainActor actor)) 
        {
            actor.GetBomb();
            Destroy(this.gameObject);
        }
    }
}

